package org.lorin.programmercalendar.model;

public class Action implements Comparable<Action>{
	private int id;
	private String name;
	private String goodFortune;
	private String badFortune;
	
	public final static String ID="id";
	public final static String NAME="name";
	public final static String GOOD_FORTUNE="good_fortune";
	public final static String BAD_FORTUNE="bad_fortune";
	public final static String TABLE="action";
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getGoodFortune() {
		return goodFortune;
	}
	public void setGoodFortune(String goodFortune) {
		this.goodFortune = goodFortune;
	}
	public String getBadFortune() {
		return badFortune;
	}
	public void setBadFortune(String badFortune) {
		this.badFortune = badFortune;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Override
	public int compareTo(Action another) {
		if(another==null){
			return -1;
		}
		// TODO Auto-generated method stub
		return getId()-another.getId();
	}
}
